package ooday04.Animals;

public class AnimalDemo {
    public static void main(String[] args) {
//        Dog[] dogs=new Dog[3];
//        dogs[0]=new Dog(4,"Kids","blue");
//        dogs[1]=new Dog(3,"Iris","red");
//        dogs[2]=new Dog(2,"Unique","cyan");
//        for (int i = 0; i < dogs.length; i++) {
//            System.out.println(dogs[i].name);
//            dogs[i].eat();
//        }
//        Dog[] dogs=new Dog[3];
//        dogs[0]=new Dog(4,"Kids","blue");
//        dogs[1]=new Dog(3,"Iris","red");
//        dogs[2]=new Dog(2,"Unique","cyan");
//        Master m=new Master();
//        m.feed(dogs[1]);
        Dog d =new Dog(4,"Iris","black");
//        Fish f=new Fish(1,"Lily","brown");
        Chicken c=new Chicken(3,"Roger","blue");
        Master m=new Master();
        m.feed(d);
//        m.feed(f);
        m.feed(c);
    }
}
